package com.yan.demo;

public class Test11 {
    public static void main(String[] args) {
        double yuan = getArea(7);
        double chang = getArea(8,9);
        System.out.println("chang = " + chang);
        System.out.println("yuan = " + yuan);
    }

    public static double getArea(double r){
        return Math.PI * r * r;
    }

    public static double getArea(double chang , double kuan){
        return chang * kuan;
    }
}
